package com.scala.zhenghui

import scala.util.control.Breaks
import scala.util.control.Breaks._

/**
 * Created by Administrator on 2018/1/21/021.
 */
object Test {

  def main(args: Array[String]) {
    var str:String = if("e".equals("e")) "yes" else "no";
    println(str)
    breakable {
      var n = 10
      for (c <- "Hello World") {
        if (n == 5) break
        print(c)
        n -= 1
      }
    }

 val loop =  new Breaks

    var a = 1
    var b = 2
    a = a+1
    a.+(1)

    print(a)

  }
}
